<div class="row">
    <div class="col-sm-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>市场开发</strong>
            </div>

            <div class="panel-body">
                <div class="row center-block">
                    <div class="col-sm-8">

                        <div ng-show="completed" class="text-success">
                            {{hospital.province.name}}-{{hospital.name}} (已签约)
                        </div>
                        <div ng-show="!completed" class="text-warning" >
                            {{hospital.province.name}}-{{hospital.name}} (未完成)
                        </div>
                    </div>

                </div>

                <a id="add_user" role="button" class="btn btn-primary btn-sm" style="margin-top: 10px" ng-show="!completed" ng-click="add()">
                    <i class="glyphicon glyphicon-plus">
                    </i> 添加市场开发登记
                </a>

                <div clss="table-container">
                    <div id="outerdiv">
                        <div id="innerdiv">
                            <table st-pipe="callServer" st-table="displayed" class="table table-striped">
                                <thead>
                                <tr>
                                    <th st-ratio="20" st-sort="stemp">步骤</th>
                                    <th st-ratio="15" st-sort="name">人员</th>
                                    <th st-ratio="15" st-sort="createTime">时间</th>
                                    <th st-ratio="20" st-sort="version_desc" st-align-center>事件</th>
                                    <th st-ration="15" st-sort="hospital_officer">院长/主任</th>
                                    <th st-ration="15" st-sort="desc">进展/困难</th>
                                </tr>

                                </thead>
                                <tbody ng-hide="isLoading">
                                <tr ng-repeat="row in displayed">
                                    <th st-ratio="20">{{row.step}}</th>
                                    <th st-ratio="15">{{row.name}}</th>
                                    <td st-ratio="15">{{row.createTime | date : 'yyyy-MM-dd'}}</td>
                                    <th st-ratio="20">
                                        <div ng-show="row.version_desc.url">
                                            <a target="_blank" href="{{row.version_desc.url}}">
                                                {{row.version_desc.desc}}
                                            </a>
                                        </div>

                                        <div ng-show="!row.version_desc.url">
                                            {{row.version_desc.desc}}
                                        </div>

                                    </th>
                                    <th st-ration="15">{{row.hospital_officer}}</th>
                                    <th st-ration="15">{{row.desc}}</th>
                                </tr>
                                </tbody>
                                <tbody ng-show="isLoading">
                                <tr>
                                    <td colspan="4" class="text-center">Loading ... </td>
                                </tr>
                                </tbody>

                                <tbody ng-show="noRecord">
                                <tr>
                                    <td colspan="4" class="text-center">暂无记录 </td>
                                </tr>
                                </tbody>
                                <tfoot>
                                <tr>
                                    <!--<td class="text-center" st-pagination="" st-items-by-page="10" colspan="4"></td>-->
                                    <td colspan="5" class="text-center">
                                        <div st-items-by-page="10" colspan="40" st-pagination="" st-template="partials/pagination.custom.html"></div>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>